<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
    <div class="layui-side layui-side-menu" th:fragment="sidebar-div">
        <div class="layui-side-scroll">
            <div class="layui-logo">
                <h3 class="" style="color: #ffffff;font-weight: bold;">
                    </i><label th:text="${shopName}"></label>
                </h3>
            </div>
            <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
            <!-- 异步加载权限菜单  -->
            <li class="layui-nav-item" >
                <a href="javascript:;" data-index="0" th:lay-href="@{module/shop/dashboard}" lay-tips="控制台">
                    <i class="fa fa fa-bar-chart-o"></i>
                    <cite>控制台</cite>
                </a>
            </li>

            <li class="layui-nav-item" th:each="menu : ${menus}">
                <!--                    <label th:text="${menu.text +'=='+ menu.menuType}"></label>-->
                <a href="javascript:;" lay-tips="主页" lay-direction="2" th:if="${menu.menuType eq 0}">
                    <i class="fa fa fa-bar-chart-o" th:class="${menu.attributes.icon}"></i>
                    <cite th:text="${menu.text}"></cite>
                    <span class="layui-nav-more"></span>
                </a>

                <a href="javascript:;" th:lay-id="${menu.attributes.url}" th:data-index="${menu.id}" th:lay-href="${menu.attributes.url}" lay-tips="主页" th:if="${menu.menuType eq 1}">
                    <i class="fa fa fa-bar-chart-o" th:class="${menu.attributes.icon}"></i>
                    <cite th:text="${menu.text}"></cite>
                </a>

                <dl class="layui-nav-child" th:if="${menu.children.size() > 0}" >
                    <dd data-name="" class="" th:each="cmenu : ${menu.children}">
                        <a href="javascript:;" th:lay-id="${cmenu.attributes.url}" th:data-index="${cmenu.id}" th:lay-href="${cmenu.attributes.url}" th:text="${cmenu.text}">控制台</a>
                    </dd>
                </dl>
            </li>
        </ul>
        </div>
    </div>

</html>
